package delayQueue;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class SendMessageTask implements DelayTask{
    private String name;

    public SendMessageTask(String name) {
        this.name = name;
    }

    public SendMessageTask() {
    }

    @Override
    public void execute() {

        System.out.println(name+"  "+LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));
    }
}
